[PHP Array] - Sorting data and print out in alphabetic order
Posted
by kwokwai
on Stack Overflow
See other posts from Stack Overflow
or by kwokwai
Published on 2010-04-29T08:33:44Z
Indexed on
2010/04/29
8:37 UTC
Read the original article
Hit count: 309
Hi all,
I got an array which contains some data like this:
$arrs = Array("ABC_efg", "@@zzAG", "@$abc", "ABC_abc")
I was trying to print the data out in this way (Printing in alphabetic order):
[String begins with character A]
ABC_abc
ABC_efg
[String begins with character other than A to Z]
@$abc
@@zzAG
I don't know how to do it.
© Stack Overflow or respective owner